package experiment1;

import java.io.IOException;
import java.util.Map;
import java.util.Set;

/**
 * @author 冯永龙
 * @date 2021/3/23 19:55
 */
class test {
    public static void main(String[] args) throws IOException {
        task2 test = new task2();
        String fileName = "src/experiment1/test.txt";
        Set<String> set = test.getWordsAlec(fileName);
        Map<String, Integer> map = test.getWordsNum(fileName);
//        System.out.println(map);
        test.printWords(map, set);
    }
}
